package com.autumn.config.entities;

import javax.persistence.Entity;
import javax.persistence.Table;

import com.autumn.config.api.consts.ConfigureConsts;
import com.autumn.mybatis.mapper.annotation.TableOrderBy;

/**
 * 应用配置信息
 * 
 * @author 老码农
 *         <p>
 *         Description
 *         </p>
 * @date 2017-12-30 20:14:53
 */
@Entity
@Table(name = "app_info")
@TableOrderBy(value = "sortId ASC")
public class ApplicationInfo extends AbstractConfigureFullGmt {

	/**
	 * 
	 */
	private static final long serialVersionUID = -5784200748349243614L;

	private String appId;
	private String appName;

	/**
	 * 
	 */
	public ApplicationInfo() {
		this.setSortId(1);
		this.setStatus(ConfigureConsts.StatusConsts.STATUS_DRAFT);
	}

	/**
	 * 获取应用Id
	 * 
	 * @return
	 */
	public String getAppId() {
		return appId;
	}

	/**
	 * 设置应用Id
	 * 
	 * @param applicationId
	 *            应用Id
	 */
	public void setAppId(String appId) {
		this.appId = appId;
	}

	/**
	 * 获取应用名称
	 * 
	 * @return
	 */
	public String getAppName() {
		return appName;
	}

	/**
	 * 设置应用名称
	 * 
	 * @param appName
	 *            应用名称
	 */
	public void setAppName(String appName) {
		this.appName = appName;
	}
}
